package com.system.honour.service;

import com.system.honour.common.ResultDTO;
import com.system.honour.entity.SysPermission;

import java.util.List;


public interface PermissionService {

    ResultDTO findByAll();

    ResultDTO getListByRoleId(Integer roleId);

    ResultDTO findMenuAll();

    ResultDTO save(SysPermission permission);

    ResultDTO update(SysPermission permission);

    ResultDTO deleteById(Integer id);

	ResultDTO getMenuByUserId(Integer userId);

	List<SysPermission> getListByUserId(Integer userId);
}
